import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)

import en_US from '@/lang/en_US'
import zh_CN from '@/lang/zh_CN'
import es_ES from '@/lang/es_ES'
import fr_FR from '@/lang/fr_FR'
import ru_RU from '@/lang/ru_RU'
import ar_EG from '@/lang/ar_EG'
import zh_TW from '@/lang/zh_TW'
import de_DE from '@/lang/de_DE'
import he_IL from '@/lang/he_IL'
import id_ID from '@/lang/id_ID'
import ms_MY from '@/lang/ms_MY'
import my_MM from '@/lang/my_MM'
import th_TH from '@/lang/th_TH'
import vi_VN from '@/lang/vi_VN'
const i18n = new VueI18n({
	locale: localStorage.getItem('language'),
	messages: {
		en_US,
		zh_CN, 
		es_ES,
		fr_FR,
		ru_RU,
		ar_EG,
		zh_TW,
		de_DE,
		he_IL,
		id_ID,
		ms_MY,
		my_MM,
		th_TH,
		vi_VN
	},
	silentTranslationWarn: true
})

export default i18n